﻿@model WikeSoft.WorkFlowEngine.Models.WorkFlowDefinition
@{
    ViewBag.Title = "布局页面";
    Layout = "~/Views/Shared/_FrameLayout.cshtml";
}
@section scripts{
    <script src="~/Scripts/page/wike.workflowdesign.dialog.js"></script>
}
<form class="form-horizontal" action="@Url.Action("Add")" method="post">
    <div class="form-group">
        @Html.LabelFor(x => x.FlowDefKey, new { @class = "col-sm-2 control-label" })


        <div class="col-sm-10">
            @Html.TextBoxFor(x => x.FlowDefKey, new { @class = "form-control", placeholder = "" })
            @Html.ValidationMessageFor(x => x.FlowDefKey)

        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(x => x.FlowDefName, new { @class = "col-sm-2 control-label" })
        <div class="col-sm-10">
            @Html.TextBoxFor(x => x.FlowDefName, new { @class = "form-control", placeholder = "" })
            @Html.ValidationMessageFor(x => x.FlowDefName)

        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(x => x.BusinessUrl, new {@class = "col-sm-2 control-label"})
        <div class="col-sm-10">
            @Html.TextBoxFor(x => x.BusinessUrl, new {@class = "form-control", placeholder = ""})
            @Html.ValidationMessageFor(x => x.BusinessUrl)

        </div>
    </div>

    <div class="form-group">
        @Html.LabelFor(x => x.AuditUrl, new { @class = "col-sm-2 control-label" })
        <div class="col-sm-10">
            @Html.TextBoxFor(x => x.AuditUrl, new { @class = "form-control", placeholder = "" })
            @Html.ValidationMessageFor(x => x.AuditUrl) 
        </div>
    </div>
    

    <div class="form-group">
        @Html.LabelFor(x => x.CategoryName, new { @class = "col-sm-2 control-label" })
        <div class="col-sm-10">
            <div class="input-group">
                @Html.TextBoxFor(x => x.CategoryName, new { @class = "form-control", placeholder = "" })
                @Html.ValidationMessageFor(x => x.CategoryName)
                @Html.HiddenFor(x => x.CategoryId)
                <span class="input-group-btn">
                    <input type="button" class="btn btn-default" id="btnSelectPost" value="选择">
                    <input type="button" class="btn btn-default" id="btnClear" value="清空">
                </span>
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default">保存</button>
        </div>
    </div>
</form>